const {
    override,
    fixBabelImports,
    addWebpackResolve,
    addWebpackAlias,
    addDecoratorsLegacy
} = require('customize-cra');
const path = require('path')


module.exports = override(
    fixBabelImports('import', {
        libraryName: 'antd-mobile',
        style: 'css',
    }),
    addWebpackResolve({
        extensions: [".js", ".json", ".jsx"]
    }),

    addWebpackAlias({
        "@": path.resolve(__dirname, 'src/'),
        "@a": path.resolve(__dirname, 'src/assets'),
        "@c": path.resolve(__dirname, 'src/components'),
        "@u": path.resolve(__dirname, 'src/utils')
    }),
    addDecoratorsLegacy()


);